﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fanli_newscata.aspx.cs" Inherits="Web.fanliAdmin.Info.fanli_newscata" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>公告类别 - 后台管理 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/function.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right">
        <!-- 头部开始 -->
        <div class="right-title">
            返利网管理后台>公告信息类别</div>
        <div class="con-title">
            <img src="../image/icon01.gif" width="23" height="26" style="padding: 2px 0 0 15px;
                float: left" />
            <span class="con-txt">公告信息类别</span>
        </div>
        <!-- 头部开始 -->
        <!-- 查询开始 -->
        <div class="toptab" id="divQuery" runat="server">
            <div class="tabcontent">
                <div class="span">
                    类别名称：</div>
                <div class="span">
                    <asp:TextBox ID="txtQryCataname" runat="server" CssClass="clsInput"></asp:TextBox></div>
                <div class="span">
                    <asp:Button ID="btnQuery" CssClass="btnQuery" runat="server" Text=" 查询 " OnClick="btnQuery_Click" />
                     &nbsp;&nbsp;
                    <asp:HyperLink ID="HyperLink1" runat="server"  NavigateUrl="fanli_newscataAdd.aspx" Target="_blank"
                   ToolTip="点此添加类别信息" onclick="window.open(this.href,'','width=780,height=450');return false;" >添加新类别</asp:HyperLink>
                    </div>
            </div>
        </div>
        <!-- 查询结束 -->
        <!-- 列表内容开始 -->
        <div class="tab" id="divList" runat="server">
            <!-- 信息列表开始 -->
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
                CssClass="GridViewStyle" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="id"
                EmptyDataText="对不起，暂时没有您要查询的信息！" OnRowDeleting="GridView1_RowDeleting">
                <Columns>
                    <asp:TemplateField HeaderText="序号">
                        <ItemTemplate>
                            <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize +this.GridView1.Rows.Count + 1%>
                        </ItemTemplate>
                        <HeaderStyle ForeColor="Red" Width="50px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ID">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="70px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="类别名称">
                        <ItemTemplate>
                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("cataName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="说明">
                        <ItemTemplate>
                            <asp:Label ID="lblAbout" runat="server" Text='<%# Eval("about") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="sortID" HeaderText="排序" >
                    <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                        <ItemTemplate>
                             <asp:HyperLink ID="hlEdit" ToolTip="点此修改类别信息" runat="server"
                                NavigateUrl='<%#"fanli_newscataAdd.aspx?id="+Eval("ID") %>' Target="_blank"
                                onclick="window.open(this.href,'','width=780,height=450');return false;" ImageUrl="~/fanliAdmin/image/edit.gif"></asp:HyperLink> &nbsp;&nbsp;
                            <asp:ImageButton ID="imbDelete" runat="server" CommandName="delete" ImageUrl="~/fanliAdmin/image/delete.gif"
                                OnClientClick="return confirm('您确定要删除该条信息吗？')" ToolTip="删除信息" />
                        </ItemTemplate>
                        <HeaderStyle Width="50px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
                <EmptyDataRowStyle CssClass="GridViewEmpty" />
            </asp:GridView>
            <!-- 信息列表结束 -->
            <!-- 分页开始 -->
            <div class="content" id="divPager" runat="server">
                <div class="page">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginators" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CurrentPageButtonClass="cpb"
                        HorizontalAlign="Center" ShowPageIndexBox="Always" SubmitButtonClass="button"
                        SubmitButtonText="GO" TextAfterPageIndexBox="页 " TextBeforePageIndexBox="跳到"
                        Width="98%" OnPageChanging="AspNetPager1_PageChanging" PageSize="30" CustomInfoHTML="共 %RecordCount% 条/共 %PageCount% 页"
                        CustomInfoSectionWidth="20%" ShowCustomInfoSection="Right" CustomInfoClass="paginators"
                        CustomInfoTextAlign="Center">
                    </webdiyer:AspNetPager>
                </div>
            </div>
            <!-- 分页结束 -->
        </div>
        <!-- 列表内容结束 -->
    </div>
    </form>
</body>
</html>
